home *** CD-ROM | disk | FTP | other *** search
/ Chip 2003 November / Chip Kasım 2003.iso / prog / openoff / f_0316 / scalc.jar / text / scalc / guide / integer_leading_zero.xml < prev    next >
Encoding:
Extensible Markup Language  |  2002-01-24  |  4.2 KB  |  56 lines

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <html><head><title>Entering a Number with Leading Zeros</title><meta name="filename" content="text/scalc/guide/integer_leading_zero"/><meta name="language" content="en-US"/><help:css-file-link xmlns:help="http://openoffice.org/2000/help"/><!--The CSS style header method for setting styles--><style type="text/css">
  3.  
  4.         p.P1{
  5.                 }
  6.         p.P2{
  7.                 }
  8.         p.P3{
  9.                 }
  10.         span.T1{
  11.                 font-weight:bold;}
  12.         </style></head><body>
  13.    
  14.    
  15.    <p class="P1"/>
  16.    <p class="Head1"><help:key-word value="zeros; entering" tag="kw68083_2" xmlns:help="http://openoffice.org/2000/help"/><help:key-word value="number; with leading zero" tag="kw68083_12" xmlns:help="http://openoffice.org/2000/help"/><help:key-word value="leading zeros; entering/suppressing" tag="kw68083_11" xmlns:help="http://openoffice.org/2000/help"/><help:key-word value="whole number; with leading zeros" tag="kw68083_10" xmlns:help="http://openoffice.org/2000/help"/><help:to-be-embedded Eid="integer_leading_zero" xmlns:help="http://openoffice.org/2000/help"><help:link Id="68083">Entering a Number with Leading Zeros</help:link></help:to-be-embedded></p>
  17.    <help:to-be-embedded Eid="inttext" xmlns:help="http://openoffice.org/2000/help">
  18.    <p class="Paragraph"><help:key-word value="Zero, entering a" tag="kw68083_9"/><help:key-word value="Numbers starting with a zero" tag="kw68083_8"/>There are various ways to enter <help:key-word value="integers starting with a zero" tag="kw68083_1"/>integers starting with a zero:<help:key-word value="leading zeros" tag="kw68083_7"/></p>
  19.    <ul class="L1">
  20.     <li class="">
  21.      <p style="">Enter the number as text. The easiest way is to enter the number starting with an apostrophe (for example, '0987). The apostrophe will not be entered in the cell and the number will be formatted as text. Because it is in text format, however, you won't be able to calculate with this number.</p>
  22.     </li>
  23.     <li class="">
  24.      <p style="">Format a cell with a number format such as \0000. This format can be assigned in the <span style="font-weight:bold;">Format code</span> box under <span style="font-weight:bold;">Format - Cells... - Numbers</span> tab and defines the cell display as "always put a zero first and then the integer, having at least three places, and filled with zeros at the left if less than three digits".</p>
  25.     </li>
  26.    </ul>
  27.    <p class="Paragraph"><help:key-word value="numbers; changing text/number format" tag="kw68083_6"/><help:key-word value="cells; changing text/number format" tag="kw68083_5"/><help:key-word value="formats; changing text/number" tag="kw68083_4"/><help:key-word value="text; changing to number" tag="kw68083_3"/></p>
  28.    <p class="Paragraph">If, however, you have imported an entire column with numbers in "text format", i.e. in the form of "000123", which you now want to turn into "real" numbers again without zeros in front of them, i.e. in the form of "123", proceed as follows:</p>
  29.    <ol class="L2">
  30.     <li class="">
  31.      <p style="">Select the column in which the digits are found in "text format". Set the cell format in that column as "Number".</p>
  32.     </li>
  33.     <li class="">
  34.      <p style="">Call up <span style="font-weight:bold;">Edit - Find & Replace</span></p>
  35.     </li>
  36.     <li class="">
  37.      <p style="">In the <span style="font-weight:bold;">Search for</span> box, enter ^[0-9]</p>
  38.     </li>
  39.     <li class="">
  40.      <p style="">In the <span style="font-weight:bold;">Replace with</span> box enter: &</p>
  41.     </li>
  42.     <li class="">
  43.      <p style="">Put a check in front of <span style="font-weight:bold;">Regular expressions</span></p>
  44.     </li>
  45.     <li class="">
  46.      <p style="">Put a check in front of <span style="font-weight:bold;">Current selection only</span></p>
  47.     </li>
  48.     <li class="">
  49.      <p style="">Click <span style="font-weight:bold;">Replace All</span></p>
  50.     </li>
  51.    </ol>
  52.    </help:to-be-embedded>
  53.    <p class="ParaList"><help:embedded Id="65598" Eid="related" xmlns:help="http://openoffice.org/2000/help"/></p>
  54.    <p class="ParaList"><help:embedded Id="68077" Eid="text_numbers" xmlns:help="http://openoffice.org/2000/help"/></p>
  55.    <p class="ParaList"><help:embedded Id="68079" Eid="format_value" xmlns:help="http://openoffice.org/2000/help"/></p>
  56.   </body></html>